home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / wattcp / apps / makefile < prev    next >
Encoding:
Makefile  |  1994-10-25  |  1.8 KB  |  98 lines

  1. #
  2. #       Makefile for Waterloo TCP sample applications
  3. #
  4.  
  5. TCCINCLUDE=L:\borlandc\include
  6. DEBUG= E        # set to D for disable, E for enable
  7. MODEL= S        # set to L for large, S for small
  8.  
  9. #
  10. #
  11. # auto configure section
  12. #
  13. #
  14.  
  15. !if '$(DEBUG)'=='E'
  16. IDEBUG=-v
  17. TEXTDEBUG=enabled
  18. !elif '$(DEBUG)'=='D'
  19. IDEBUG=-v-
  20. TEXTDEBUG=disabled
  21. #!else
  22. #!error  DEBUG must be set to either E or D
  23. !endif
  24.  
  25. !if '$(MODEL)'=='L'
  26. CMODEL=-ml
  27. CLIB=..\lib\wattcplg.lib
  28. TEXTMODEL=large
  29. !elif '$(MODEL)'=='S'
  30. CMODEL=-ms
  31. CLIB=..\lib\wattcpsm.lib
  32. TEXTMODEL=small
  33. !else
  34. !error  MODEL must be set to either S or L
  35. !endif
  36.  
  37. CFLAGS= $(CMODEL) -r- $(IDEBUG) -IL:\borlandc\include -I..\include
  38. CC= bcc $(CFLAGS)
  39.  
  40. #
  41. #
  42. #  list of executables
  43. #
  44. #
  45.  
  46. .c.exe:
  47.         $(CC) $*.c $(CLIB)
  48.  
  49.  
  50. exes.arc: ping.exe daytime.exe finger.exe lpr.exe lpq.exe \
  51.         tcpport.exe rexec.exe ntime.exe tcpinfo.exe cookie.exe \
  52.         popdump.exe ph.exe tcptalk.exe
  53. # host.exe
  54.         echo done $(TEXTMODEL) make with debugging $(TEXTDEBUG)
  55.  
  56. cookie.exe: cookie.c
  57.  
  58. popdump.exe: popdump.c
  59.  
  60. ping.exe: ping.c
  61.         $(CC)  ping.c $(CLIB)
  62.  
  63. daytime.exe: daytime.c
  64.         $(CC) daytime.c $(CLIB)
  65.  
  66. finger.exe: finger.c
  67.  
  68. lpr.exe: lpr.c
  69.         $(CC)  lpr.c $(CLIB)
  70.  
  71. lpq.exe: lpq.c
  72.         $(CC)  lpq.c $(CLIB)
  73.  
  74. tcpport.exe: tcpport.c
  75.         $(CC)  tcpport.c $(CLIB)
  76.  
  77. # test version of tcpport
  78. tcpport1.exe: tcpport1.c
  79.         $(CC)  tcpport1.c  $(CLIB)
  80.  
  81. rexec.exe: rexec.c
  82.         $(CC)  rexec.c $(CLIB)
  83.  
  84. ntime.exe: ntime.c
  85.         $(CC)  ntime.c $(CLIB)
  86.  
  87. tcpinfo.exe: tcpinfo.c
  88.         $(CC)  tcpinfo.c $(CLIB)
  89.  
  90. ph.exe: ph.c
  91.         $(CC)  ph.c  $(CLIB)
  92.  
  93. tcptalk.exe: tcptalk.c
  94.         $(CC)  tcptalk.c $(CLIB)
  95.  
  96. host.exe: host.c
  97.         $(CC)  host.c $(CLIB)
  98.